All Packages Class Hierarchy This Package Previous Next Index
Class quicktime.std.music.NoteRequest
java.lang.Object
|
+----quicktime.util.QTByteObject
|
+----quicktime.std.music.NoteRequestInfo
|
+----quicktime.std.music.NoteRequest
- public final class NoteRequest
- extends NoteRequestInfo
- implements Cloneable
Provides all the information required to initialise a NoteChannel.
The constructors for a NoteRequest will correclty fill in the the default
values for the typicalPolyphony field (1.0) and flags will be set to zero.
-
kNativeSize
- This is the size (the number of bytes) that are required for this class
-
NoteRequest()
- Creates a NoteRequest instance with the default values.
-
NoteRequest(int, int)
-
Create a NoteRequest from the given gmNumber instrument and polyphony values.
-
NoteRequest(ToneDescription)
-
Create a NoteRequest from the given ToneDescription value.
-
NoteRequest(ToneDescription, int)
-
Create a NoteRequest from the given ToneDescription and polyphony values.
-
clone()
- Makes a copy of a NoteRequest object.
-
getToneDescription()
- Returns a copy of the current contained ToneDescription
-
setToneDescription(ToneDescription)
- Sets the ToneDescription.
-
toString()
- Returns a string representation of this object
kNativeSize
public static final int kNativeSize
- This is the size (the number of bytes) that are required for this class
NoteRequest
public NoteRequest()
- Creates a NoteRequest instance with the default values.
Polyphony is set to 1.
NoteRequest
public NoteRequest(ToneDescription td)
- Create a NoteRequest from the given ToneDescription value.
- Parameters:
- td - a ToneDescription that describes the tone characteristics of the NoteRequest
NoteRequest
public NoteRequest(ToneDescription td,
int poly)
- Create a NoteRequest from the given ToneDescription and polyphony values.
- Parameters:
- td - a ToneDescription that describes the tone characteristics of the NoteRequest.
- poly - the most number of simulateous notes maybe played at the same time. This
value is a suggestion to the music toolbox that is used to estimate the resources
a NoteChannel will be required to utilise.
NoteRequest
public NoteRequest(int gmNumber,
int poly) throws QTException
- Create a NoteRequest from the given gmNumber instrument and polyphony values.
- Parameters:
- gmNumber - the general MIDI number of the requested instrument
- poly - the most number of simulateous notes maybe played at the same time. This
value is a suggestion to the music toolbox that is used to estimate the resources
a NoteChannel will be required to utilise.
setToneDescription
public void setToneDescription(ToneDescription desc)
- Sets the ToneDescription.
getToneDescription
public ToneDescription getToneDescription()
- Returns a copy of the current contained ToneDescription
toString
public String toString()
- Returns a string representation of this object
- Overrides:
- toString in class NoteRequestInfo
clone
public Object clone()
- Makes a copy of a NoteRequest object.
- Overrides:
- clone in class NoteRequestInfo
All Packages Class Hierarchy This Package Previous Next Index